	<div id="" class="portlet-content " style="OVERFLOW-X:yes;OVERFLOW-Y:auto">
							<input type="hidden" id="thisTableCount" name="thisTableCount" value="#tableCount"/>
							<input type="hidden" id="templateType#tableCount" name="templateType#tableCount" value="#templateTypeValue"/>
							<input type="hidden" id="dataOrder#tableCount" name="dataOrder#tableCount" value="-1"/>
							<input type="hidden" id="thisTableRow" name="thisTableRow" value="$rowCount"/>
							<input type="hidden" id="thisTableCol" name="thisTableCol" value="$colCount"/>
							<input type="hidden" id="spanNum" name="spanNum" value="$colCount2"/>
							<input type="button" class="btn btn-primary btn-xs" onclick="addNewRow(this,'1')" value="新增行"/>
							&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="button" class="btn btn-primary btn-xs" onclick="addNewCol2(this)" value="新增指标列"/>
							&nbsp;&nbsp;&nbsp;&nbsp;							
							<input type="button" class="btn btn-primary btn-xs" onclick="addComment(this,'3')" value="新增注释行"/>							
							<table id="" width="96%"  cellpadding="0" cellspacing="0" class="table1" style="OVERFLOW-X:yes;OVERFLOW-Y:auto">
                        	   <tr>
                                    <td class="editable simpleInput table_head" style="color:red" id="tableName" name="tableName">
										表名
									</td>
                               </tr>
                        	   <tr>
                                <td class="table_con" valign="top">
                                    <table id="emailContentTable" width="99%" align="center" cellpadding="0" cellspacing="1" class="table_in" style="OVERFLOW-X:yes;OVERFLOW-Y:auto">
                        				<tr>
                        					<th id="templateTh#tableCount" rowspan="2" name="templateTh#tableCount" class="editable simpleInput">城市</th>
											<th id="templateTh#tableCount" colspan="${colCount2}" name="templateTh#tableCount" class="editable simpleInput" style="color:red">类别</th>
                        				</tr>
                        				<tr>
                        					#foreach($col in [1..$colCount2])
                            						<th class="editable simpleInput" style="color:red">指标${col}&nbsp;&nbsp;<a style="color:#6C6C6C" href="javascript:void(0)" onclick="deleteCol2(this)">删除</a></th>
    										#end
    									</tr>
    									<tr onMouseOver="this.className='tdbg10'" onMouseOut="this.className='tdbg11'" class="tdbg11">
                            				<td id="templateTd#tableCount" name="templateTd#tableCount" class="td1 editable simpleInput" style="color:red">城市1</td>
											  #foreach($col in [1..$colCount2])
                                              	<td id="templateTd#tableCount" name="templateTd#tableCount" class="editable simpleInput" style="color:red">可编辑</td>
											  #end
                                        </tr>
                         			</table>
                                </td>
                               </tr>
                       		 </table>
						 
							 </br>
							 
							<div>
									<div  id='sqlconf'>
										<br>
    									<div class='form-group'>
                                                <label class='col-md-2' style='color:red'>指标集:</label>
                                                <div class='col-md-2' style='width:80%'>                                                
                    						      <input style='width:100%'type='text' id='templateIndex#tableCount'  name ='templateIndex#tableCount' class='form-control'/>
                                                </div>
                                              
                                                  <input  type='button' class='col-md-2' style='float:right'  onclick='dropThisSql(this)' value='删除该数据源配置'/>

                                         </div>
                                        <div class='form-group' style='margin-top:10px'>
                                            <label class='col-md-2' >对应数据库:</label>
                							<div class='col-md-2'  style='width:30%'>
                								<select size='1' style='width:100%;height:25px'  id='templateDB#tableCount'  name ='templateDB#tableCount'>
                                            		   #foreach($db in $dbList)
                                            			<option value='${db.ename}:${db.id}:${db.host}'>
                                        						${db.cname}(${db.ename})
                                        				</option>
                                        			   #end
                                                </select>
                                            </div>

                                             <label class='col-md-2' >表名:</label>
                                            <div class='col-md-2' style='width:27%'>
                                                <input  style='width:100%;' type='text' id='srcTable#tableCount' name='srcTable#tableCount' class='form-control' />
                                            </div>
                                            <label class='col-md-2' >是否校验:</label>
                                            <div class='col-md-2' style='width:6%'>
                                                <select style='width:100%;height:25px'  id='checkTable#tableCount'  name ='checkTable#tableCount'>
                                                    <option value='0'>否</option>
                                                    <option value='1'>是</option>
                                                </select>
                                            </div>
                                            <label class='col-md-2' >日期字段:</label>
                                            <div class='col-md-2' style='width:8%'>
                                                 <input  style='width:100%;' type='text' id='dateField#tableCount' name='dateField#tableCount' class='form-control' value='stat_date'/>
                                            </div>
                						</div>	    
                                        <div class='form-group'>	
                							<label class='col-md-2' >SQL1:</label>
                                            <div class='col-md-2' style='width:100%'>
                                                <textarea style='font-family:Microsoft YaHei; font-size:14px; line-height:20px; height:70px; width:100%'   id='templateSql#tableCount'  name ='templateSql#tableCount'></textarea>
                                            </div>
        				                </div>
                                        
                                        <br>
                                     </div>
								<input id="" type="button"   style="float:right"  class="btn btn-primary btn-xs" onclick="addNewSql(this)" value="新增数据源sql"/>
								
                             </div>
							
 	</div>
							